﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using M;

namespace Mysoft.MyCM.Web.Controllers
{
	/// <summary>
	/// 无效的请求参数异常
	/// </summary>
	public class MInvalidRequestParamException : MException
	{
		/// <summary>
		/// M 提供的自定义 Exception
		/// 默认严重级别为：Message
		/// 默认原始异常为：Null
		/// </summary>
		/// <param name="message">所包含的消息</param>
		public MInvalidRequestParamException(string message)
			: this(message, MExceptionLevel.Message)
		{

		}
		/// <summary>
		/// M 提供的自定义 Exception
		/// 默认原始异常为：Null
		/// </summary>
		/// <param name="message">所包含的消息</param>
		/// <param name="exceptionLevel">所对应的严重级别</param>
		public MInvalidRequestParamException(string message, MExceptionLevel exceptionLevel)
			: this(message, exceptionLevel, null)
		{
		}
		/// <summary>
		/// M 提供的自定义 Exception
		/// </summary>
		/// <param name="message">所包含的消息</param>
		/// <param name="exceptionLevel">所对应的严重级别</param>
		/// <param name="innerException">对包含的原始异常</param>
		public MInvalidRequestParamException(string message, MExceptionLevel exceptionLevel, Exception innerException)
			: base(message, exceptionLevel, innerException)
		{

		}
	}
}